package service;

import pojo.User;

import java.util.List;

public interface UserService {
    User findById(int userId);
    User findByUserName(String userName);
    List<User> findAll();
    int addUser(User user);
    int updateUserInfo(User user);
    int updatePassword(int userId, String password);
    int updateLoginInfo(int userId);
    int deleteUser(int userId);
    List<User> findAllWithRole();
}